/**
 * 
 */
package com.taobao.client.sdk;

import java.util.Map;

import com.taobao.client.Data;

/**
 * The input parameters of getting trade address
 * 
 * @author hujingfei.pt
 *
 */
public class AddressGetRequest extends CommonRequest{
	// The encoding type.
	private String encoding;
	
	/**
	 * 
	 * Default constructor.
	 */
	public AddressGetRequest(){};
	
	/**
	 * Constructor 
	 */
	public AddressGetRequest(String encoding){
		this.encoding = encoding;
	}
	
	/**
	 * @param pairs the hashmap whose contents are set
	 */
	public void setMapContent(Map<String, String> pairs) {
		pairs.put("method", Data.API_ADDRESS_GET);
		pairs.put("encoding", encoding);				
	}
	
	/**
	 * Initialize unchangable parameters
	 */
	public void initialize() {
		
	}

	/**
	 * @return the encoding
	 */
	public String getEncoding() {
		return encoding;
	}

	/**
	 * @param encoding the encoding to set
	 */
	public void setEncoding(String encoding) {
		this.encoding = encoding;
	}
}
